import { defineStore } from "pinia";
// 选项Api
const useCouerStore = defineStore("couer", {
  state: () => ({
    // 定义状态
    count: 0,
    double: 0,
  }),
  // 定义计算属性
  actions: {
    // 定义动作
    increamnt() {
      this.count++;
    },
  },
  getters: {
    // 定义获取器
    doubleCount: (state) => state.count * 2,
  },
});
